<h2>Ingredients Available</h2>

<div id="ingredient_types">
<% for ingredient_type in @ingredient_types %>
    <p>
      <%= link_to ingredient_type.name , ingredient_type %>
      (<%= ingredient_type.unit %>)
      <%= number_to_currency ingredient_type.cost %>
      <%= link_to 'Edit', edit_ingredient_type_path(ingredient_type) %>
      <%= link_to 'Delete', ingredient_type, :confirm => 'Are you sure?', :method => :delete %>
    </p>
<% end %>
</div>

<%= link_to 'New ingredient', new_ingredient_type_path %>
